// 引用网络请求中间件
import request from '../../utils/request.js';



export default {
	/* 判断是否是医生 */
	isUemployee(userId) {
		return request({
			url: `	/employee/getSubEmploy/isUemployee?userId=${userId}`,
			method: 'GET',
		})
	},
	/* 科目 */
	getSubjectCode(code) {
		return request({
			url: `/employee/getSubjectCode?code=${code}`,
			method: 'GET',
		})
	},
	/*  */
	getDoctorNew(subjectCode) {
		return request({
			url: `/employee/getSubEmploy?subjectCode=${subjectCode}`,
			method: 'GET',
		})
	},
	
	
	inquiry(data) {
		return request({
			url: "/employee/inquiry",
			method: 'POST',
			data
		})
	},

	getDoctor() {
		return request({
			url: `/employee/app/list`,
			method: 'GET',
		})
	},
	/*  */
	getDoctorById(data) {
		return request({
			url: `/employee/query`,
			method: 'POST',
			data
		})
	},


	getDoctorDetail(uemployeeid) {
		return request({
			url: `/employee/doctorDetail?uemployeeid=${uemployeeid}`,
			method: 'GET',
		})
	},


	getDoctorPage(data) {
		return request({
			url: `/employee/query`,
			method: 'POST',
			data
		})
	},



	getHospital() {
		return request({
			url: `/merchant/selectAllCompInfo`,
			method: 'GET',
		})
	},

}